package com.general.myspringboot;

import com.general.myspringboot.domain.User;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: TestController
 * @author: general
 * @version: 1.0
 * @create: 2021-10-21 21:44
 **/
@RestController
@RequestMapping("/user")
public class UserController {

    @PostMapping("/save")
    public User saveUser(@RequestBody User user){
        return user;
    }
}
